<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $model app\modules\Admin\models\Liuyan */
?>

<div class="liuyan-form">

	<?php $form = ActiveForm::begin([
		'options' => [],
		'layout' => 'horizontal',
		'fieldConfig' => [
			'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
			'horizontalCssClasses' => [
			'label' => 'col-sm-2',
			'wrapper' => 'col-sm-6',
			],
		],
	]); ?>



    <?= $form->field($model, 'com_topicid')->textInput() ?>

    <?= $form->field($model, 'com_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'com_text')->textInput(['maxlength' => true]) ?>

    <!-- ?= $form->field($model, 'com_time')->textInput() ? -->

    <?= $form->field($model, 'com_likes')->textInput() ?>

    <div class="form-group text-center">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
